package ch.supsi.mobile.core;

import java.net.URL;

public class Page implements IPage {

	private String content;
	private String url;
	
	public Page(String url, String content){
		this.content = content;
		this.url = url;
	}

	@Override
	public String getContent() {
		return content;
	}

	@Override
	public String getURL() {
		return url;
	}

	@Override
	public String toString(){
		return url;
	}

	@Override
	public boolean equals(Object obj) {
		Page p = (Page)obj;
		return (this.url.equals(p.getURL()));
	}
	
	
}
